package cn.flexui.flexuiserver.service.impl;

import cn.flexui.flexuiserver.domain.entity.UserInfo;
import cn.flexui.flexuiserver.mapper.UserInfoMapper;
import cn.flexui.flexuiserver.service.UserInfoService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户信息表 服务实现类
 * </p>
 *
 * @author apeto
 * @since 2024-09-15 08:37:16
 */
@Service
public class UserInfoServiceImpl extends ServiceImpl<UserInfoMapper, UserInfo> implements UserInfoService {

    @Override
    public UserInfo selectByOpenId(String openId) {
        return getOne(new LambdaQueryWrapper<UserInfo>().eq(UserInfo::getOpenId, openId));
    }
}
